import {
  MessageBox
} from 'element-ui'
export default function delConfirm (confirmText = '确定删除该数据？', title = '提示', dangerouslyUseHTMLString = false) {
  return new Promise((resolve, reject) => {
    MessageBox.confirm(confirmText, title, {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type: 'warning',
      dangerouslyUseHTMLString: dangerouslyUseHTMLString
    }).then(_ => {
      resolve()
    }).catch(err => {})
  })
}
